<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TEdit类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_edit.html">TEdit</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_edit-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TEdit类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TEdit 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_edit.png" usemap="#awtk.TEdit_map" alt=""/>
  <map id="awtk.TEdit_map" name="awtk.TEdit_map">
<area href="classawtk_1_1_t_combo_box.html" alt="awtk.TComboBox" shape="rect" coords="0,112,122,136"/>
<area href="classawtk_1_1_t_spin_box.html" alt="awtk.TSpinBox" shape="rect" coords="132,112,254,136"/>
<area href="classawtk_1_1_t_combo_box_ex.html" alt="awtk.TComboBoxEx" shape="rect" coords="0,168,122,192"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1304a8eb0e5b1d50fffda3168f3baf58"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a1304a8eb0e5b1d50fffda3168f3baf58">TEdit</a> (long nativeObj)</td></tr>
<tr class="separator:a1304a8eb0e5b1d50fffda3168f3baf58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54dfa7d9792d79b4f2545ad88f66cc6a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a54dfa7d9792d79b4f2545ad88f66cc6a">getInt</a> ()</td></tr>
<tr class="separator:a54dfa7d9792d79b4f2545ad88f66cc6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f6fcd5cbafc4d848d8659a30ca4c6d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a53f6fcd5cbafc4d848d8659a30ca4c6d">getDouble</a> ()</td></tr>
<tr class="separator:a53f6fcd5cbafc4d848d8659a30ca4c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d013a8959740ceb95fd63d6a0a86617"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a3d013a8959740ceb95fd63d6a0a86617">setInt</a> (int value)</td></tr>
<tr class="separator:a3d013a8959740ceb95fd63d6a0a86617"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d041d5fe1965b061af9b1e470843ed8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4d041d5fe1965b061af9b1e470843ed8">setDouble</a> (double value)</td></tr>
<tr class="separator:a4d041d5fe1965b061af9b1e470843ed8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c4cd79700697bae39487a0a83936fca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a8c4cd79700697bae39487a0a83936fca">setTextLimit</a> (int min, int max)</td></tr>
<tr class="separator:a8c4cd79700697bae39487a0a83936fca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab60ea183eb4fbd10b65bc3979e9f397d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ab60ea183eb4fbd10b65bc3979e9f397d">setIntLimit</a> (int min, int max, int step)</td></tr>
<tr class="separator:ab60ea183eb4fbd10b65bc3979e9f397d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a93e4f2c6e58a8dd13723193afd1dfd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a9a93e4f2c6e58a8dd13723193afd1dfd">setFloatLimit</a> (double min, double max, double step)</td></tr>
<tr class="separator:a9a93e4f2c6e58a8dd13723193afd1dfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cd953fa1cff886dbe123e598c1922a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4cd953fa1cff886dbe123e598c1922a9">setReadonly</a> (boolean readonly)</td></tr>
<tr class="separator:a4cd953fa1cff886dbe123e598c1922a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdcdc2f23aee583f8e74209146f84d68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#abdcdc2f23aee583f8e74209146f84d68">setAutoFix</a> (boolean auto_fix)</td></tr>
<tr class="separator:abdcdc2f23aee583f8e74209146f84d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17ee7a550d2f87674fd68811b563a017"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a17ee7a550d2f87674fd68811b563a017">setSelectNoneWhenFocused</a> (boolean select_none_when_focused)</td></tr>
<tr class="separator:a17ee7a550d2f87674fd68811b563a017"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0499673b0946550c0fe3db3e5b3a4dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ae0499673b0946550c0fe3db3e5b3a4dc">setOpenImWhenFocused</a> (boolean open_im_when_focused)</td></tr>
<tr class="separator:ae0499673b0946550c0fe3db3e5b3a4dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa1c97fb9c92c973dd2bd4e8aba1b001"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#afa1c97fb9c92c973dd2bd4e8aba1b001">setInputType</a> (<a class="el" href="enumawtk_1_1_t_input_type.html">TInputType</a> type)</td></tr>
<tr class="separator:afa1c97fb9c92c973dd2bd4e8aba1b001"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25448294b4e362b573886ca740f6c633"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a25448294b4e362b573886ca740f6c633">setInputTips</a> (String tips)</td></tr>
<tr class="separator:a25448294b4e362b573886ca740f6c633"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfc7c37a40d46e78e7ab14ea2b45f32f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#acfc7c37a40d46e78e7ab14ea2b45f32f">setPasswordVisible</a> (boolean password_visible)</td></tr>
<tr class="separator:acfc7c37a40d46e78e7ab14ea2b45f32f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f2fe503adf5e41fe9c0102b5c33f50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ac5f2fe503adf5e41fe9c0102b5c33f50">setFocus</a> (boolean focus)</td></tr>
<tr class="separator:ac5f2fe503adf5e41fe9c0102b5c33f50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aafadc67c20a64f7f414cc11952be71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a7aafadc67c20a64f7f414cc11952be71">setCursor</a> (int cursor)</td></tr>
<tr class="separator:a7aafadc67c20a64f7f414cc11952be71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91b3675075a6b85b87ed51d9c5076e66"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a91b3675075a6b85b87ed51d9c5076e66">getReadonly</a> ()</td></tr>
<tr class="separator:a91b3675075a6b85b87ed51d9c5076e66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a2c4b455c6cec7f9cda4a383444bcdb"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a3a2c4b455c6cec7f9cda4a383444bcdb">getPasswordVisible</a> ()</td></tr>
<tr class="separator:a3a2c4b455c6cec7f9cda4a383444bcdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b95397c0b7226ac607c26b3251058cc"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a6b95397c0b7226ac607c26b3251058cc">getAutoFix</a> ()</td></tr>
<tr class="separator:a6b95397c0b7226ac607c26b3251058cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ec14c8369366ea282057b8f87a3b307"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4ec14c8369366ea282057b8f87a3b307">getSelectNoneWhenFocused</a> ()</td></tr>
<tr class="separator:a4ec14c8369366ea282057b8f87a3b307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedd87e45ab85c5fecc539424c2a6d96e"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#aedd87e45ab85c5fecc539424c2a6d96e">getOpenImWhenFocused</a> ()</td></tr>
<tr class="separator:aedd87e45ab85c5fecc539424c2a6d96e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06a163f41c0f041aef037ffe77121605"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a06a163f41c0f041aef037ffe77121605">getTopMargin</a> ()</td></tr>
<tr class="separator:a06a163f41c0f041aef037ffe77121605"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b50b475eeddf9459cd82f3348041524"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4b50b475eeddf9459cd82f3348041524">getBottomMargin</a> ()</td></tr>
<tr class="separator:a4b50b475eeddf9459cd82f3348041524"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4968208fbaf2bb2ccbb71f42db9eb3c0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4968208fbaf2bb2ccbb71f42db9eb3c0">getLeftMargin</a> ()</td></tr>
<tr class="separator:a4968208fbaf2bb2ccbb71f42db9eb3c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a66cb487b2a51ee3b8eedd8529446fc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4a66cb487b2a51ee3b8eedd8529446fc">getRightMargin</a> ()</td></tr>
<tr class="separator:a4a66cb487b2a51ee3b8eedd8529446fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e974129bc7002c7a150638f39cdf0ec"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a3e974129bc7002c7a150638f39cdf0ec">getTips</a> ()</td></tr>
<tr class="separator:a3e974129bc7002c7a150638f39cdf0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4337dc3eaf6b906d84c8693245571e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_input_type.html">TInputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#aa4337dc3eaf6b906d84c8693245571e6">getInputType</a> ()</td></tr>
<tr class="separator:aa4337dc3eaf6b906d84c8693245571e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7becd5e8c915b8bdb45d964115c1ec93"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a7becd5e8c915b8bdb45d964115c1ec93">getMin</a> ()</td></tr>
<tr class="separator:a7becd5e8c915b8bdb45d964115c1ec93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa73bb680610717cdf5ff35f51513ac62"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#aa73bb680610717cdf5ff35f51513ac62">getMax</a> ()</td></tr>
<tr class="separator:aa73bb680610717cdf5ff35f51513ac62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08d10eab4de90b2df6c4e1d487dc6d34"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a08d10eab4de90b2df6c4e1d487dc6d34">getStep</a> ()</td></tr>
<tr class="separator:a08d10eab4de90b2df6c4e1d487dc6d34"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a6bb1b46fd01f738a930efacfd5aefd1e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_edit.html">TEdit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a6bb1b46fd01f738a930efacfd5aefd1e">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a6bb1b46fd01f738a930efacfd5aefd1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d09e68e8a6df2f25c2a0d8ffec9e97a"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a2d09e68e8a6df2f25c2a0d8ffec9e97a">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a2d09e68e8a6df2f25c2a0d8ffec9e97a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae53f94c7e6d54f065e3a7c02ce036a2a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_edit.html">TEdit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ae53f94c7e6d54f065e3a7c02ce036a2a">cast</a> (TWidget widget)</td></tr>
<tr class="separator:ae53f94c7e6d54f065e3a7c02ce036a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>单行编辑器控件。</p>
<p>在基于SDL的平台，单行编辑器控件使用平台原生的输入法，对于嵌入式平台使用内置的输入法。</p>
<p>在使用内置的输入法时，软键盘由输入类型决定，开发者可以自定义软键盘的界面。</p>
<p>edit_t是widget\_t的子类控件，widget_t的函数均适用于edit_t控件。</p>
<p>edit_t本身可以做为容器，放入按钮等控件。有几个特殊的子控件：</p>
<p>名为"clear"的按钮。点击时清除编辑器中的内容。 名为"inc"的按钮。点击时增加编辑器的值，用于实现类似于spinbox的功能。 名为"dec"的按钮。点击时减少编辑器的值，用于实现类似于spinbox的功能。 名为"visible"的复选框。勾选时显示密码，反之不显示密码。</p>
<p>在xml中使用"edit"标签创建编辑器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">edit</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span></div>
<div class="line">*<span class="keyword">tips</span>=<span class="stringliteral">&quot;age&quot;</span> <span class="keyword">input_type</span>=<span class="stringliteral">&quot;uint&quot;</span> <span class="keyword">min</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">max</span>=<span class="stringliteral">&quot;150&quot;</span> <span class="keyword">step</span>=<span class="stringliteral">&quot;1&quot;</span> <span class="keyword">auto_fix</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;number&quot;</span> /&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>XXX：需要在min/max/step之前设置input_type。 </p>
</blockquote>
<p>&gt;更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/edit.xml">edit.xml</a></p>
<p>在c代码中使用函数edit_create创建编辑器控件。如：</p>
<blockquote class="doxtable">
<p>创建之后，可以用widget_set_text或widget_set_text_utf8设置文本内容。 </p>
</blockquote>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/edit.c">edit demo</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>  <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> <span class="keyword">text_align_h</span>=<span class="stringliteral">&quot;left&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">focused</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;black&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">disable</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;gray&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;#d0d0d0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">error</span>      <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;red&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">empty</span>      <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L104">theme default</a> </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a1304a8eb0e5b1d50fffda3168f3baf58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1304a8eb0e5b1d50fffda3168f3baf58">&#9670;&nbsp;</a></span>TEdit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TEdit.TEdit </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a6bb1b46fd01f738a930efacfd5aefd1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bb1b46fd01f738a930efacfd5aefd1e">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_edit.html">TEdit</a> awtk.TEdit.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_combo_box.html#a35af5f66d306ac3570c75d2da95400a0">awtk.TComboBox</a>, <a class="el" href="classawtk_1_1_t_spin_box.html#a26bf01472acc18b34aac04b8025d086e">awtk.TSpinBox</a> , 以及 <a class="el" href="classawtk_1_1_t_combo_box_ex.html#a0539be72cb286df4499221c12d454b55">awtk.TComboBoxEx</a> 重载.</p>

</div>
</div>
<a id="ae53f94c7e6d54f065e3a7c02ce036a2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae53f94c7e6d54f065e3a7c02ce036a2a">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_edit.html">TEdit</a> awtk.TEdit.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为edit对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>edit对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>edit对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_combo_box.html#ad8a146cb04fc5d1d55867af98531d383">awtk.TComboBox</a> , 以及 <a class="el" href="classawtk_1_1_t_spin_box.html#a519c1081d2cc853b963ab7cf851d5fb7">awtk.TSpinBox</a> 重载.</p>

</div>
</div>
<a id="a2d09e68e8a6df2f25c2a0d8ffec9e97a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d09e68e8a6df2f25c2a0d8ffec9e97a">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TEdit.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建edit对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_combo_box.html#a4f893f874fe29509fd9f0606d8063a1a">awtk.TComboBox</a>, <a class="el" href="classawtk_1_1_t_spin_box.html#a21b679128d3af3d3f036b50aa7bb00f2">awtk.TSpinBox</a> , 以及 <a class="el" href="classawtk_1_1_t_combo_box_ex.html#a6539ad1288bb1932b2256af8b2ccfdb2">awtk.TComboBoxEx</a> 重载.</p>

</div>
</div>
<a id="a6b95397c0b7226ac607c26b3251058cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b95397c0b7226ac607c26b3251058cc">&#9670;&nbsp;</a></span>getAutoFix()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TEdit.getAutoFix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>输入无效时，是否自动改正。 </p>

</div>
</div>
<a id="a4b50b475eeddf9459cd82f3348041524"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b50b475eeddf9459cd82f3348041524">&#9670;&nbsp;</a></span>getBottomMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEdit.getBottomMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>下边距。 </p>

</div>
</div>
<a id="a53f6fcd5cbafc4d848d8659a30ca4c6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53f6fcd5cbafc4d848d8659a30ca4c6d">&#9670;&nbsp;</a></span>getDouble()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TEdit.getDouble </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取double类型的值。</p>
<dl class="section return"><dt>返回</dt><dd>返回double的值。 </dd></dl>

</div>
</div>
<a id="aa4337dc3eaf6b906d84c8693245571e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4337dc3eaf6b906d84c8693245571e6">&#9670;&nbsp;</a></span>getInputType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_input_type.html">TInputType</a> awtk.TEdit.getInputType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>输入类型。 </p>

</div>
</div>
<a id="a54dfa7d9792d79b4f2545ad88f66cc6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54dfa7d9792d79b4f2545ad88f66cc6a">&#9670;&nbsp;</a></span>getInt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEdit.getInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取int类型的值。</p>
<dl class="section return"><dt>返回</dt><dd>返回int的值。 </dd></dl>

</div>
</div>
<a id="a4968208fbaf2bb2ccbb71f42db9eb3c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4968208fbaf2bb2ccbb71f42db9eb3c0">&#9670;&nbsp;</a></span>getLeftMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEdit.getLeftMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>左边距。 </p>

</div>
</div>
<a id="aa73bb680610717cdf5ff35f51513ac62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa73bb680610717cdf5ff35f51513ac62">&#9670;&nbsp;</a></span>getMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TEdit.getMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大值或最大长度。 </p>

</div>
</div>
<a id="a7becd5e8c915b8bdb45d964115c1ec93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7becd5e8c915b8bdb45d964115c1ec93">&#9670;&nbsp;</a></span>getMin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TEdit.getMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最小值或最小长度。 </p>

</div>
</div>
<a id="aedd87e45ab85c5fecc539424c2a6d96e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedd87e45ab85c5fecc539424c2a6d96e">&#9670;&nbsp;</a></span>getOpenImWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TEdit.getOpenImWhenFocused </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得焦点时打开输入法。</p>
<blockquote class="doxtable">
<p>主要用于没有指针设备的情况，否则每次切换焦点时都打开输入法。 </p>
</blockquote>

</div>
</div>
<a id="a3a2c4b455c6cec7f9cda4a383444bcdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a2c4b455c6cec7f9cda4a383444bcdb">&#9670;&nbsp;</a></span>getPasswordVisible()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TEdit.getPasswordVisible </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>密码是否可见。 </p>

</div>
</div>
<a id="a91b3675075a6b85b87ed51d9c5076e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91b3675075a6b85b87ed51d9c5076e66">&#9670;&nbsp;</a></span>getReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TEdit.getReadonly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>编辑器是否为只读。 </p>

</div>
</div>
<a id="a4a66cb487b2a51ee3b8eedd8529446fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a66cb487b2a51ee3b8eedd8529446fc">&#9670;&nbsp;</a></span>getRightMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEdit.getRightMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>右边距。 </p>

</div>
</div>
<a id="a4ec14c8369366ea282057b8f87a3b307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ec14c8369366ea282057b8f87a3b307">&#9670;&nbsp;</a></span>getSelectNoneWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TEdit.getSelectNoneWhenFocused </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得焦点时不选中文本。</p>
<blockquote class="doxtable">
<p>主要用于没有指针设备的情况，否则软键盘无法取消选中文本。 </p>
</blockquote>

</div>
</div>
<a id="a08d10eab4de90b2df6c4e1d487dc6d34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08d10eab4de90b2df6c4e1d487dc6d34">&#9670;&nbsp;</a></span>getStep()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TEdit.getStep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>步长。 作为数值型编辑器时，一次增加和减少时的数值。 </p>

</div>
</div>
<a id="a3e974129bc7002c7a150638f39cdf0ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e974129bc7002c7a150638f39cdf0ec">&#9670;&nbsp;</a></span>getTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TEdit.getTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>输入提示。 </p>

</div>
</div>
<a id="a06a163f41c0f041aef037ffe77121605"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06a163f41c0f041aef037ffe77121605">&#9670;&nbsp;</a></span>getTopMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEdit.getTopMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>上边距。 </p>

</div>
</div>
<a id="abdcdc2f23aee583f8e74209146f84d68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdcdc2f23aee583f8e74209146f84d68">&#9670;&nbsp;</a></span>setAutoFix()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setAutoFix </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>auto_fix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否为自动改正。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_fix</td><td>自动改正。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7aafadc67c20a64f7f414cc11952be71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7aafadc67c20a64f7f414cc11952be71">&#9670;&nbsp;</a></span>setCursor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setCursor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cursor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置输入框的光标坐标。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cursor</td><td>是否为焦点。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4d041d5fe1965b061af9b1e470843ed8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d041d5fe1965b061af9b1e470843ed8">&#9670;&nbsp;</a></span>setDouble()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setDouble </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置double类型的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9a93e4f2c6e58a8dd13723193afd1dfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a93e4f2c6e58a8dd13723193afd1dfd">&#9670;&nbsp;</a></span>setFloatLimit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setFloatLimit </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>step</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为浮点数输入及取值范围。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值。 </td></tr>
    <tr><td class="paramname">max</td><td>最大值。 </td></tr>
    <tr><td class="paramname">step</td><td>步长。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac5f2fe503adf5e41fe9c0102b5c33f50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5f2fe503adf5e41fe9c0102b5c33f50">&#9670;&nbsp;</a></span>setFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setFocus </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为焦点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">focus</td><td>是否为焦点。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a25448294b4e362b573886ca740f6c633"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25448294b4e362b573886ca740f6c633">&#9670;&nbsp;</a></span>setInputTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setInputTips </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的输入提示。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tips</td><td>输入提示。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afa1c97fb9c92c973dd2bd4e8aba1b001"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa1c97fb9c92c973dd2bd4e8aba1b001">&#9670;&nbsp;</a></span>setInputType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setInputType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="enumawtk_1_1_t_input_type.html">TInputType</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的输入类型。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>输入类型。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3d013a8959740ceb95fd63d6a0a86617"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d013a8959740ceb95fd63d6a0a86617">&#9670;&nbsp;</a></span>setInt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setInt </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置int类型的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab60ea183eb4fbd10b65bc3979e9f397d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab60ea183eb4fbd10b65bc3979e9f397d">&#9670;&nbsp;</a></span>setIntLimit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setIntLimit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>step</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为整数输入及取值范围。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值。 </td></tr>
    <tr><td class="paramname">max</td><td>最大值。 </td></tr>
    <tr><td class="paramname">step</td><td>步长。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae0499673b0946550c0fe3db3e5b3a4dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0499673b0946550c0fe3db3e5b3a4dc">&#9670;&nbsp;</a></span>setOpenImWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setOpenImWhenFocused </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>open_im_when_focused</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否在获得焦点时打开输入法。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">open_im_when_focused</td><td>是否在获得焦点时打开输入法。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acfc7c37a40d46e78e7ab14ea2b45f32f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfc7c37a40d46e78e7ab14ea2b45f32f">&#9670;&nbsp;</a></span>setPasswordVisible()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setPasswordVisible </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>password_visible</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当编辑器输入类型为密码时，设置密码是否可见。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">password_visible</td><td>密码是否可见。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4cd953fa1cff886dbe123e598c1922a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cd953fa1cff886dbe123e598c1922a9">&#9670;&nbsp;</a></span>setReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setReadonly </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>readonly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否为只读。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">readonly</td><td>只读。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a17ee7a550d2f87674fd68811b563a017"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17ee7a550d2f87674fd68811b563a017">&#9670;&nbsp;</a></span>setSelectNoneWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setSelectNoneWhenFocused </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>select_none_when_focused</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否在获得焦点时不选中文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">select_none_when_focused</td><td>是否在获得焦点时不选中文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8c4cd79700697bae39487a0a83936fca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c4cd79700697bae39487a0a83936fca">&#9670;&nbsp;</a></span>setTextLimit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEdit.setTextLimit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为文本输入及其长度限制，不允许输入超过max个字符，少于min个字符时进入error状态。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小长度。 </td></tr>
    <tr><td class="paramname">max</td><td>最大长度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TEdit.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
